<script setup lang="ts">
import { ref } from 'vue';
import yzbutton from '../components/uiComponents/yzButton.vue'
import { yzButtonAttribute } from '../class/ui/yzButtonAttribute';
import { glEvent } from '../events/glEvent';
//实例化
let itemData = ref(new yzButtonAttribute());
itemData.value.type = "danger";  
glEvent.ui.addSubcribe("yzButton", () => {
  console.log("进来了定义的订阅事件")
})
</script>

<template>
  <yzbutton :itemData="itemData" />
  <el-button>按钮</el-button>
</template>

<style scoped>
</style>
